package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TAllinformationMapper;
import com.ruoyi.system.domain.TAllinformation;
import com.ruoyi.system.service.ITAllinformationService;

/**
 * 所有信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-09
 */
@Service
public class TAllinformationServiceImpl implements ITAllinformationService 
{
    @Autowired
    private TAllinformationMapper tAllinformationMapper;

    /**
     * 查询所有信息
     * 
     * @param allinformationId 所有信息主键
     * @return 所有信息
     */
    @Override
    public TAllinformation selectTAllinformationByAllinformationId(Long allinformationId)
    {
        return tAllinformationMapper.selectTAllinformationByAllinformationId(allinformationId);
    }

    /**
     * 查询所有信息列表
     * 
     * @param tAllinformation 所有信息
     * @return 所有信息
     */
    @Override
    public List<TAllinformation> selectTAllinformationList(TAllinformation tAllinformation)
    {
        return tAllinformationMapper.selectTAllinformationList(tAllinformation);
    }

    /**
     * 新增所有信息
     * 
     * @param tAllinformation 所有信息
     * @return 结果
     */
    @Override
    public int insertTAllinformation(TAllinformation tAllinformation)
    {
        return tAllinformationMapper.insertTAllinformation(tAllinformation);
    }

    /**
     * 修改所有信息
     * 
     * @param tAllinformation 所有信息
     * @return 结果
     */
    @Override
    public int updateTAllinformation(TAllinformation tAllinformation)
    {
        return tAllinformationMapper.updateTAllinformation(tAllinformation);
    }

    /**
     * 批量删除所有信息
     * 
     * @param allinformationIds 需要删除的所有信息主键
     * @return 结果
     */
    @Override
    public int deleteTAllinformationByAllinformationIds(Long[] allinformationIds)
    {
        return tAllinformationMapper.deleteTAllinformationByAllinformationIds(allinformationIds);
    }

    /**
     * 删除所有信息信息
     * 
     * @param allinformationId 所有信息主键
     * @return 结果
     */
    @Override
    public int deleteTAllinformationByAllinformationId(Long allinformationId)
    {
        return tAllinformationMapper.deleteTAllinformationByAllinformationId(allinformationId);
    }
}
